package com;

//泛型类
public class Bean3<T,F> {
    //这并不是泛型泛型方法
    public T getName() {
        return name;
    }

    public void setName(T name) {
        this.name = name;
    }

    T name;

    //这才是泛型方法
    public <E> E test(F test){
        E e=null;
        return e;
    }
    public <E,R> R test2(E e,R r){
        R _r = r;
        E _e = e;
        return _r;
    }

    public void test4(Bean3<?,String> test){

    }
}
